package com.shelpe.services.algorithm.repository.jpa;

import java.util.List;

import org.springframework.data.repository.CrudRepository;

import com.shelpe.services.algorithm.entity.jpa.AutoProductQueue;

public interface AutoProductQueueRepository extends CrudRepository<AutoProductQueue, AutoProductQueue.QueuePK> {

	AutoProductQueue findByCampaignIDAndProductID(long campaignID, long productID);

	List<AutoProductQueue> findByCampaignID(long campaignID);

	List<AutoProductQueue> findByUserID(long userID);

	List<AutoProductQueue> findByCampaignIDAndSequence(long campaignID, long sequence);
}
